<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.js"></script>
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
	<script type="text/javascript" src="js/handle.js"></script>

<style type="text/css">
	#forClone{
		display:none;
	}
	#thClone{
		display:none;
	}
</style>
</head>
<body>
	<h1 align="center">添加Customer</h1>
	<form id="formId" class="form-horizontal" role="form"
		style="width: 30%; margin: 0 auto; margin-top: 30px;">
		<div class="form-group">
			<label for="firstname" class="col-sm-2 control-label">Name</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="cname"
					placeholder="please input name">
			</div>
		</div>
		<div class="form-group">
			<label for="lastname" class="col-sm-2 control-label">Sex</label>
			<div class="col-sm-10"
				style="padding-top: 7px;">
				<input type="radio" name="sex" value="true" checked="checked">Male
				<input type="radio" name="sex" value="false">Female
			</div>
		</div>
		<div class="form-group">
			<label for="firstname" class="col-sm-2 control-label">Salary</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="sal"
					placeholder="please input salary">
			</div>
		</div>
		<div class="form-group">
			<label for="firstname" class="col-sm-2 control-label">Birthday</label>
			<div class="col-sm-10">
				<input type="date" class="form-control" name="birth"
					placeholder="please input name">
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<button type="button" id="submit" class="btn btn-default">Add</button>
			</div>
		</div>
	</form>
	<br>
	<br>
	<br>
	<br>
	<h1 align="center">Ajax生成</h1>
	<table border=1 id="tableId" class="table table-bordered" style="width: 30%; margin: 0 auto;">
		<thead id="thead">
			<th class="tname">NAME</th>
			<th class="tsex">SEX</th>
			<th clas="tsal">SAL</th>
			<th class="tbirth">BIRTH</th>
			<th>删除</th>
			<th>更新</th>
		</thead>
		<tbody id="tbody"></tbody>
	</table>
	<table class="table table-bordered" style="width: 30%; margin: 0 auto;">
		
		<tr id="forClone">
			<td class="name">cname</td>
			<td class="sex">sex</td>
			<td class="sal">sal</td>
			<td class="birth">birth</td>
			<td class="delete"><button class="btn btn-danger">del</button></td>
			<td class="update"><button class="btn btn-primary">update</button></td>
		</tr>
	</table>
	
	
	<!-- 模态框（Modal） -->  
<div class="modal fade" id="showFrame" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">  
    <div class="modal-dialog">  
        <div class="modal-content">  
            <div class="modal-header">  
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>  
                <h4 class="modal-title" id="myModalLabel">修改信息</h4>  
            </div>  
            <div class="modal-body">
            	<form class="form-horizontal" role="form" id="modelFormId"
		style="width: 70%; margin: 0 auto; margin-top: 30px;">
		<div class="form-group">
			<label for="firstname" class="col-sm-2 control-label">ID</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="id" id="modelid" readonly="true"
					placeholder="please input name">
			</div>
		</div>
		<div class="form-group">
			<label for="firstname" class="col-sm-2 control-label">Name</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="modelname" name="cname"
					placeholder="please input name">
			</div>
		</div>
		<div class="form-group">
			<label for="lastname" class="col-sm-2 control-label">Sex</label>
			<div class="col-sm-10"
				style="padding-top: 7px;">
				<input type="radio" name="sex" value="true" checked="checked" id="modelsex">Male
				<input type="radio" name="sex" value="false" id="modelsex">Female
			</div>
		</div>
		<div class="form-group">
			<label for="firstname" class="col-sm-2 control-label">Salary</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="modelsal" name="sal"
					placeholder="please input salary">
			</div>
		</div>
		<div class="form-group">
			<label for="firstname" class="col-sm-2 control-label">Birthday</label>
			<div class="col-sm-10">
				<input type="date" class="form-control" name="birth" id="modelbirth" name="birth"
					placeholder="please input name">
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<button type="button" id="submit" class="btn btn-default">Add</button>
			</div>
		</div>
	</form>
            </div>  
            <div class="modal-footer">  
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>  
                <button type="button" class="btn btn-primary" id="finalUpdate">提交更改</button>  
            </div>  
        </div>  
        <!-- /.modal-content -->  
    </div>  
    <!-- /.modal -->  
</div>  
</body>
</html>